package com.example.service.impl;

import com.example.Utils.LoggerUtils;
import com.example.model.Review;
import com.example.dao.ReviewMapper;
import com.example.service.IReviewService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Hello
 * @since 2024-07-09
 */
@Service
public class ReviewServiceImpl extends ServiceImpl<ReviewMapper, Review> implements IReviewService {
    private static final Logger logger = LoggerUtils.getLogger(UserServiceImpl.class);
    @Autowired
    ReviewMapper reviewMapper;
    public Boolean saveReview(String userid,Review review){
        review.setUserId(userid);

        return reviewMapper.insert(review) == 1;
    }

    @Override
    public Boolean removeReview(Review review) {
        return null;
    }
}
